package com.ruoyi.project.baozhi.employee1.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.baozhi.employee1.mapper.OrgEmployee1Mapper;
import com.ruoyi.project.baozhi.employee1.domain.OrgEmployee1;
import com.ruoyi.project.baozhi.employee1.service.IOrgEmployee1Service;
import com.ruoyi.common.utils.text.Convert;

/**
 * 人员1Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
@Service
public class OrgEmployee1ServiceImpl implements IOrgEmployee1Service 
{
    @Autowired
    private OrgEmployee1Mapper orgEmployee1Mapper;

    /**
     * 查询人员1
     * 
     * @param orgDeptEmployeeId 人员1主键
     * @return 人员1
     */
    @Override
    public OrgEmployee1 selectOrgEmployee1ByOrgDeptEmployeeId(String orgDeptEmployeeId)
    {
        return orgEmployee1Mapper.selectOrgEmployee1ByOrgDeptEmployeeId(orgDeptEmployeeId);
    }

    /**
     * 查询人员1列表
     * 
     * @param orgEmployee1 人员1
     * @return 人员1
     */
    @Override
    public List<OrgEmployee1> selectOrgEmployee1List(OrgEmployee1 orgEmployee1)
    {
        return orgEmployee1Mapper.selectOrgEmployee1List(orgEmployee1);
    }

    @Override
    public List<OrgEmployee1> selectOrgEmployee1List1(OrgEmployee1 orgEmployee1)
    {
        return orgEmployee1Mapper.selectOrgEmployee1List1(orgEmployee1);
    }

    /**
     * 新增人员1
     * 
     * @param orgEmployee1 人员1
     * @return 结果
     */
    @Override
    public int insertOrgEmployee1(OrgEmployee1 orgEmployee1)
    {
        return orgEmployee1Mapper.insertOrgEmployee1(orgEmployee1);
    }

    /**
     * 修改人员1
     * 
     * @param orgEmployee1 人员1
     * @return 结果
     */
    @Override
    public int updateOrgEmployee1(OrgEmployee1 orgEmployee1)
    {
        return orgEmployee1Mapper.updateOrgEmployee1(orgEmployee1);
    }

    /**
     * 批量删除人员1
     * 
     * @param orgDeptEmployeeIds 需要删除的人员1主键
     * @return 结果
     */
    @Override
    public int deleteOrgEmployee1ByOrgDeptEmployeeIds(String orgDeptEmployeeIds)
    {
        return orgEmployee1Mapper.deleteOrgEmployee1ByOrgDeptEmployeeIds(Convert.toStrArray(orgDeptEmployeeIds));
    }

    /**
     * 删除人员1信息
     * 
     * @param orgDeptEmployeeId 人员1主键
     * @return 结果
     */
    @Override
    public int deleteOrgEmployee1ByOrgDeptEmployeeId(String orgDeptEmployeeId)
    {
        return orgEmployee1Mapper.deleteOrgEmployee1ByOrgDeptEmployeeId(orgDeptEmployeeId);
    }
}
